# -*- coding: utf-8 -*-

"""
crawl.exceptions

"""


class ConfigValueMissingException(Exception):
    """配置信息缺失"""

    def __init__(self, field_name, *args, **kwargs):
        super(ConfigValueMissingException, self).__init__("配置信息%s缺失" % field_name)


class ConfigValueErrorException(Exception):
    """配置信息的值不合规"""

    def __init__(self, field_name, *args, **kwargs):
        super(ConfigValueMissingException, self).__init__("配置%s的值不合规" % field_name)
